<?php
/**
 * Created by PhpStorm.
 * User: man0sions
 * Date: 16/8/31
 * Time: 下午10:04
 */

namespace src\Base\Builder;


class Builder
{
    function Builder(TodolistInterface $interface){
        $data = $interface->getPlaylistFromApi($ulr='');
        $interface->formatPlaylist($data);
        $interface->savePlaylist();

        $interface->getVideosFromApi($url='');
        $interface->formatVideo();
        $interface->saveVideo();
    }
}